home *** CD-ROM | disk | FTP | other *** search
/ Ghost Rider iactivecard / Ghost Rider iactivecard.iso / pc / quiz.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2007-04-17  |  7.4 KB  |  96 lines

  1. function creaNuovoArray()
  2. {
  3.    delete tempRis;
  4.    tempRis = new Array();
  5. }
  6. stop();
  7. domande = [dom1 = ["Marvel created Ghost Rider and which of the following other comics?",2,["Superman, Captain Caveman and Spider-Man","Spider-Man, Aquaman and X-Men","X-Men, Spider-Man and Fantastic Four","X-Men, Spider-Man and The White Shadow"]],dom2 = ["Who played Roxanne, Johnny Blaze\'s childhood sweetheart?",2,["Jennifer Lopez","Eva Longoria","Eva Mendes","Penelope Cruz"]],dom3 = ["Who directed Ghost Rider?",2,["Avi Arad","Quentin Tarantino","Mark Steven Johnson","Wes Bentley"]],dom4 = ["Who said, {invalid_utf8=147}I think Ghost Rider is one of the most unique mythologies in the comic book universe?{invalid_utf8=148}",2,["Peter Fonda","Eva Mendes","Nicolas Cage","Sam Elliott"]],dom5 = ["Mark Steven Johnson previously wrote and directed what other hit comic-book adaptation?",0,["Daredevil","Fantastic Four","Spider-Man","Superman"]],dom6 = ["Nicolas Cage earned an Academy Award for which film?",2,["Adaptation","Windtalkers","Leaving Las Vegas","Peggy Sue Got Married"]],dom7 = ["In the scene in which Johnny Blaze jumps his bike across a football field, which of the following elements were computer generated?",0,["The bike, the rider, the spectators and the six Black Hawk helicopters","The stadium, the rider and the bike","The ramps and the six Black Hawk helicopters","Everything was computer generated"]],dom8 = ["When did the Ghost Rider comic-book franchise begin?",2,["1920\'s","1930\'s","1940\'s","1960\'s"]],dom9 = ["The original Ghost Rider comic-book franchise began as what?",0,["A western-themed series about a gun-slinging horeseman","A motorcycle salesman who did a deal with the devil","As Johnny Blaze, a motorcycle stunt rider","As Barton Blaze, a motorcycle stunt rider"]],dom10 = ["Up until the movie became a reality, Nicolas Cage had stopped riding motorcycles for how long?",2,["10 years","8 years","5 years","Never stopped riding"]],dom11 = ["Johnny Blaze favors what over Jack Daniels and death metal music?",3,["Cigarettes and Alternative Music","Cigarettes and Classic Music","Jelly Beans and Rock Music","Jelly Beans and Karen Carpenter\'s Music"]],dom12 = ["What does the Ghost Rider do to an evil person so they relive every sin they\'ve ever committed, a millions times over?",0,["Penance Stare","Throwing a Ball of Hellfire at them","Grabs them with his flaming hands","Turns them into a flaming skeleton"]],dom13 = ["Who played Mephistopheles?",2,["Henry Fonda","Sam Elliot","Peter Fonda","Donal Logue"]],dom14 = ["What famous fictional character did Peter Fonda portray in the movie classic Easy Rider?",3,["Ming the Merciless","Hell\'s Angel Adam","Evil Knievel","Captain America"]],dom15 = ["Who was Mephistopheles son?",1,["Blackbeard","Blackheart","Damien","Morpheus"]],dom16 = ["To create the wide-open vistas of the American high desert, the filmmakers decided to shoot in what city?",3,["Waco, TX","Silver City, ID","Las Coronas, Mexico","Melbourne, Australia"]],dom17 = ["Who did Johnny Blaze cure by doing a deal with the Devil?",3,["His Brother","Roxanne Simpson","Stunt Manager","His Father"]],dom18 = ["Nicolas Cage has starred in which other movies?",1,["National Treasure, Gone in 60 Seconds & Goodfellas","Gone in 60 Seconds, National Treasure & Lord of War","Leaving Las Vegas, Braveheart & National Treasure","The Wicker Man, Gone in 60 seconds & Patriots Day"]],dom19 = ["Eva Mendes has starred in which other movies?",0,["Hitch, Training Day & 2 Fast 2 Furious","2 Fast 2 Furious, Hitch & American Beauty","Maid in Manhattan, American Beauty, Hitch","American Beauty, 2 Fast 2 Furious & Hitch"]],dom20 = ["Mephistopheles was Peter Fonda{invalid_utf8=146}s ____ film role of his career?",0,["70th","60th","50th","40th"]],dom21 = ["What was the name of the town in Mexico where the climax of the film takes place?",3,["San Villegas","Grande Cuidad","Las Palmas","San Venganza"]],dom22 = ["Johnny Blaze{invalid_utf8=146}s first unsuccessful motorcycle jump in the movie was attempted over what?",2,["6 Black Hawk helicopters","25 monster trucks","30 huge semi-trucks","40 smashed cars"]],dom23 = ["The clothes for The Hidden - three demons, fallen angels, that aligned with Blackheart were created to seem as though they were actually made of what?",0,["Earth, Wind, Water","Hell{invalid_utf8=146}s Leather","The Cloth of Wrath","Fire Proof Rubber"]],dom24 = ["What was the name of the Ghost Rider{invalid_utf8=146}s flaming motorcycle?",1,["Hell{invalid_utf8=146}s Harley","Hellcycle","Wrathcycle","Sincycle"]],dom25 = ["How many individual bikes were actually created to portray the stages of the Hellcycle?",3,["3","5","6","7"]],dom26 = ["In the scene in which Johnny Blaze jumps his bike across a football field, which of the following elements were computer generated?",0,["The bike, the rider, the spectators and the six Black Hawk helicopters","The stadium, the rider and the bike","The ramps and the six Black Hawk helicopters","Everything was computer generated"]],dom27 = ["What did Eva Mendes (Roxanne Simpson) jokingly say was the hardest part of shooting Ghost Rider?",1,["{invalid_utf8=147}The oppressive heat of working in the desert{invalid_utf8=148}","{invalid_utf8=147}Running around in high-heel stilettos for four weeks{invalid_utf8=148}","{invalid_utf8=147}Working with fire everyday{invalid_utf8=148}","{invalid_utf8=147}Acting like I knew how to ride a motorcycle{invalid_utf8=148}"]]];
  8. toDisplay = 10;
  9. Object.prototype.nextAnswer = function()
  10. {
  11.    ranQuestion = random(domande.length);
  12.    var i = 0;
  13.    while(i < domande.length)
  14.    {
  15.       if(ranQuestion == tempArray[i])
  16.       {
  17.          var prosegui = false;
  18.          nextAnswer();
  19.          break;
  20.       }
  21.       var prosegui = true;
  22.       i++;
  23.    }
  24.    if(prosegui)
  25.    {
  26.       tempArray.push(ranQuestion);
  27.       return ranQuestion;
  28.    }
  29. };
  30. Object.prototype.removePoints = function(what, keep)
  31. {
  32.    for(var clips in "_root.box")
  33.    {
  34.       if(_root.box[clips]._name.substring(0,_root.box[clips]._name.length - 1) == what.substring(0,what.length - 1) && _root.box[clips] != _root.box[what])
  35.       {
  36.          _root.box[clips].point._visible = 0;
  37.       }
  38.    }
  39. };
  40. Object.prototype.removeAllAnswer = function()
  41. {
  42.    for(var answer in "_root.box")
  43.    {
  44.       removeMovieClip(_root.box[answer]);
  45.    }
  46. };
  47. Object.prototype.buildQuestion = function()
  48. {
  49.    creaNuovoArray();
  50.    countAnswer++;
  51.    delete myChoice;
  52.    nextAnswer();
  53.    numero_domanda = "#" + countAnswer;
  54.    domanda = domande[ranQuestion][0];
  55.    removeAllAnswer();
  56.    var i = 0;
  57.    while(i < domande[ranQuestion][2].length)
  58.    {
  59.       nextRisposta();
  60.       duplicateMovieClip("box.answer","answer" + i,16384 + i);
  61.       box["answer" + i].y_fin = answer0._y + 35 * i;
  62.       box["answer" + i].txt = domande[ranQuestion][2][ranAns];
  63.       if(ranAns == domande[ranQuestion][1])
  64.       {
  65.          box["answer" + i].thisChoice = true;
  66.       }
  67.       else
  68.       {
  69.          box["answer" + i].thisChoice = false;
  70.       }
  71.       i++;
  72.    }
  73.    box.answer._visible = 0;
  74. };
  75. Object.prototype.nextRisposta = function()
  76. {
  77.    ranAns = random(domande[ranQuestion][2].length);
  78.    var i = 0;
  79.    while(i < domande[ranQuestion][2].length)
  80.    {
  81.       if(ranAns == tempRis[i])
  82.       {
  83.          var prosegui = false;
  84.          nextRisposta();
  85.          break;
  86.       }
  87.       var prosegui = true;
  88.       i++;
  89.    }
  90.    if(prosegui)
  91.    {
  92.       tempRis.push(ranAns);
  93.       return ranAns;
  94.    }
  95. };
  96.